wayland: Stop using gdk_surface_new_temp
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Oct 2020 00:12:35 +0000 (20:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 8 Oct 2020 01:02:22 +0000 (21:02 -0400)
No need to roundtrip through the frontend to create
one of our own surfaces.

gdk/wayland/gdksurface-wayland.c

index 72cbc8c2d785ee8b299931d84ba379965b2a0083..4a54185dccd55dae8a3c71d6815064641b89481e 100644 (file)
@@ -4457,8 +4457,10 @@ create_dnd_surface (GdkDisplay *display)
 {
   GdkSurface *surface;
 
-  surface = gdk_surface_new_temp (display, &(GdkRectangle){ 0, 0, 100, 100 });
-
+  surface = _gdk_wayland_display_create_surface (display,
+                                                 GDK_SURFACE_TEMP,
+                                                 NULL,
+                                                 0, 0, 100, 100);
   GDK_WAYLAND_SURFACE (surface)->is_drag_surface = TRUE;
 
   return surface;